/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tofc.chart;

import tofc.value.ShapeValue;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author p476733
 */
public class Shape extends BaseXYChart{
    private String colour;
    private String type;
    private List<ShapeValue> values;

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List getValues() {
        return values;
    }

    public void setValues(List<ShapeValue> values) {
        this.values = values;
    }
    public void setValues(ShapeValue... values){
        this.values.clear();
        addValues(values);
    }

    public void addValues(ShapeValue... values){
        for(int i=0;i<values.length;i++){
            this.values.add(values[i]);
        }
    }

    public void setValue(int position,ShapeValue value){
        this.values.set(position, value);
    }

    public Shape() {
        this.values = new ArrayList();
        this.type = "shape";
    }

}
